#include "column.h"

Column::Column(std::string pname, std::string pdataType, int pdataLength, bool pisNull, bool pisPK){

	name = pname;
	dataLength = pdataLength;
	dataType = pdataType;
	isNull = pisNull;
	isPK = pisPK;
}

std::string Column::getName(){
	return name;
}

std::string Column::getDataType(){
	return dataType;
}

int Column::getDataLength(){
	return dataLength;
}

bool Column::getIsNull(){
	return isNull;
}

bool Column::getIsPK(){
	return isPK;
}

void Column::printObject(){

	std::cout << "\n colname : " << this->name << std::endl;
	std::cout << "\n dataType : " << this->dataType << std::endl;
	std::cout << "\n dataLength : " << this->dataLength << std::endl;
	std::cout << "\n isNull : " << this->isNull << std::endl;
	std::cout << "\n isPK : " << this->isPK << std::endl;


}
